We are migrating the bug tracker to github Issues. This is now the preferred way to report NASM bugs.

Self-registration is disabled due to spam issue (mail gorcunov@gmail.com or hpa@zytor.com to create an account)

Bug 3392437 - times with negative value causes panic
Summary: times with negative value causes panic
Status: CLOSED FIXED
Alias: None
Product: NASM
Classification: Unclassified
Component: Assembler (show other bugs)
Version: 2.13.xx
Hardware: All All
: Medium normal
Assignee: nobody
URL:
: 3392438 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-09-10 13:12 PDT by E. C. Masloch
Modified: 2017-09-27 18:34 PDT (History)
3 users (show)

Obtained from: Binary from nasm.us
Generated by: ---
Bug category:
Observed for: ---
Regression: ---
Regression since:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description E. C. Masloch 2017-09-10 13:12:51 PDT
Using a negative value for times now results in a panic, as follows:

$ nasm -v
NASM version 2.14rc0-20170624 compiled on Jun 24 2017
$ cat nasmbug.asm 
times -1 db 0
$ nasm nasmbug.asm -o nasmbug.bin
nasmbug.asm:1: panic: assertion output_ins.times >= 0 failed at asm/nasm.c:1342
$ 

Previously this would cause an "error: TIMES value -1 is negative".
Comment 1 Cyrill Gorcunov 2017-09-10 15:24:48 PDT
This is due to commit 3e458a89d8c985527313305b55d5725cf382e862. Peter, take a look please.
Comment 2 H. Peter Anvin 2017-09-27 18:24:11 PDT
Fixed in checkin 94ead27971de001aea5b403130b2a94cf152ebd4.  This fix will be included in NASM 2.13.02rc2.
Comment 3 H. Peter Anvin 2017-09-27 18:34:14 PDT
*** Bug 3392438 has been marked as a duplicate of this bug. ***